package cn.airfei.aircore.core.convertor;

import java.util.List;

public interface IConvertor<D, E, V> {
    E dto2Entity(D dto);

    V dto2Vo(D dto);

    D entity2Dto(E entity);

    D vo2Dto(V vo);

    E vo2Entity(V vo);

    V entity2Vo(E entity);

    List<E> dtoList2EntityList(List<D> dtoList);

    List<V> dtoList2VoList(List<D> dtoList);

    List<D> entityList2DtoList(List<E> entityList);

    List<D> voList2DtoList(List<V> voList);

    List<E> voList2EntityList(List<V> voList);

    List<V> entityList2VoList(List<E> entityList);

}
